Ext.onReady(function(){
	var formPanel = new Ext.form.FormPanel({
	    formId: 'fi',
	    frame: true,
		bodyStyle:'padding:5px 5px 0',
	    defaultType: 'textfield',
	    items: [{
	        fieldLabel: 'User',
	        name: 'username'
	    }, {
	        fieldLabel: 'Password',
	        name: 'password',
	        inputType: 'password'
	    }, {
	    	
		    	xtype: 'checkbox',
		    	boxLabel: 'Rememer Me?',
		    	name: 'remember',
		    	labelSeparator: ''
	    }],
	    buttons: [{
	    	text: 'Login',
	    	handler: function(){
	    		Ext.Ajax.request({
				    url: '/a',
				    form: 'fi'
				});
	    	}
		}]
	});
	
	var loginPanel = new Ext.Window({
		title: 'Login',
		resizable: false,
		closable: false,
		width: 300,
		items: formPanel
	});
    
	loginPanel.setVisible(true);
});